package com.zbkj.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 店铺营业额度(24小时一条) 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Accessors(chain = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "店铺营业额度(24小时一条)")
@TableName(value = "eb_shop_flowing_water")
@Table(value = "eb_shop_flowing_water")
public class EbShopFlowingWaterEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Schema(description = "主键")
    @Id(keyType = KeyType.Auto)
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 店铺id
     */
    @Schema(description = "店铺id")
    @Column(value = "mer_id")
    @TableField(value = "mer_id")
    private Long merId;

    /**
     * 店铺流水初始时间
     */
    @Schema(description = "店铺流水初始时间")
    @Column(value = "created_time")
    @TableField(value = "created_time")
    private LocalDateTime createdTime;

    /**
     * 店铺流水最后更新时间
     */
    @Schema(description = "店铺流水最后更新时间")
    @Column(value = "update_time")
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 店铺营业额(当天)
     */
    @Schema(description = "店铺营业额(当天)")
    @Column(value = "business_limit")
    @TableField(value = "business_limit")
    private BigDecimal businessLimit;

    /**
     * 店铺总营业额
     */
    @Schema(description = "店铺总营业额")
    @Column(value = "business_limit_count")
    @TableField(value = "business_limit_count")
    private BigDecimal businessLimitCount;

}
